<div class="goods-gallery" nctype="gallery-{$color}"> 
    <a class="sample_demo" href="/?s=seller/album/pic_list&item=goods_image&inajax=1&color={$color}" style="display:none;">提交</a>
    <div class="nav">
        <span class="l">用户相册 > {$album.aclass_name}        </span>
        <span class="r">
            <select name="jumpMenu" style="width:100px;">
                <option value="0" style="width:80px;">请选择...</option>
                {foreach $lists as $one}
                <option style="width:80px;" value="{$one.aclass_id}" >{$one.aclass_name}</option>
                {/foreach}
            </select>
        </span></div>
    <ul class="list">
        {foreach $pics as $one}
        <li onclick="insert_img('{$one.apic_cover}', '{$one.apic_cover|img_url=360}', {$color});">
            <a href="JavaScript:void(0);">
                <img alt="{$one.apic_name}" src="{$one.apic_cover|img_url=100}" title='{$one.apic_name}'/>
            </a>
        </li>
        {/foreach}
    </ul>
    {$pics->render()}
</div>
<script>
    $(document).ready(function () {
        $('div[nctype="gallery-{$color}"]').find('.demo').unbind().ajaxContent({
            event: 'click',
            loaderType: 'img',
            loadingMsg: '/old/shop/templates/new20160622/images/loading.gif',
            target: 'div[nctype="album-{$color}"]'
        });
        $('div[nctype="gallery-{$color}"]').find('select[name="jumpMenu"]').unbind().change(function () {
            var $_select_submit = $('div[nctype="gallery-{$color}"]').find('.sample_demo');
            var $_href = $_select_submit.attr('href') + "&id=" + $(this).val();
            $_select_submit.attr('href', $_href);
            $_select_submit.unbind().ajaxContent({
                event: 'click',
                loaderType: 'img',
                loadingMsg: '/old/shop/templates/new20160622/images/loading.gif',
                target: 'div[nctype="album-{$color}"]'
            });
            $_select_submit.click();
        });
    });
</script>